////////////////////////////////////////////////////////////////////////////
//	Module 		: stalker_animation_state.cpp
//	Created 	: 25.02.2003
//  Modified 	: 19.11.2004
//	Author		: Dmitriy Iassenev
//	Description : Stalker state animations
////////////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "stalker_animation_state.h"
#include "object_broker.h"
#include "Include/xrRender/Kinematics.h"

CStalkerAnimationState::CStalkerAnimationState	()
{
	m_in_place			= new IN_PLACE_ANIMATIONS();
}

CStalkerAnimationState::CStalkerAnimationState	(const CStalkerAnimationState &stalker_animation_state)
{
	clone				(stalker_animation_state.m_in_place,m_in_place);
}

CStalkerAnimationState::~CStalkerAnimationState	()
{
	xr_delete			(m_in_place);
}

void CStalkerAnimationState::Load				(IKinematicsAnimated *kinematics, LPCSTR base_name)
{
	string256			S;
	m_global.Load		(kinematics,base_name);
	m_torso.Load		(kinematics,strconcat(sizeof(S),S,base_name,"torso_"));
	m_movement.Load		(kinematics,base_name);
	m_in_place->Load	(kinematics,base_name);
}
